package top.mingtea.propertymannagement.service;

import org.springframework.stereotype.Service;
import top.mingtea.propertymannagement.mapper.property_feeMapper;
import top.mingtea.propertymannagement.pojo.property_fee;

import java.util.List;

@Service
public class property_feeService {
    private final property_feeMapper property_feeMapper;

    public property_feeService(property_feeMapper property_feeMapper) {
        this.property_feeMapper = property_feeMapper;
    }

    public List<property_fee> getAll() {
        return property_feeMapper.getAll();
    }

    public void add(property_fee propertyFee) {
        property_feeMapper.add(propertyFee);
    }

    public void remove(int building_id, int house_id) {
        property_feeMapper.remove(building_id, house_id);
    }

    public void update(property_fee propertyFee) {
        property_feeMapper.update(propertyFee);
    }
}
